package com.bqtv.sport.ui.home.fragment

import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.viewbinding.ViewBinding
import com.bqtv.sport.adapter.LiveAnalyzeBigRateAdapter
import com.bqtv.sport.app.AppActivity
import com.bqtv.sport.app.AppFragment
import com.bqtv.sport.databinding.FragmentEmptyBinding
import com.bqtv.sport.databinding.FragmentLiveAnalyzeCompareBinding


class LiveAnalyzeCompareFragment : AppFragment<FragmentLiveAnalyzeCompareBinding, AppActivity<ViewBinding>>() {

    private lateinit var homeBigRateAdapter: LiveAnalyzeBigRateAdapter
    private lateinit var awayBigRateAdapter: LiveAnalyzeBigRateAdapter
    companion object {
        private const val INTENT_KEY_TYPE = "type"
        fun newInstance(): LiveAnalyzeCompareFragment {
            val fragment = LiveAnalyzeCompareFragment()
            val bundle = Bundle()
            fragment.arguments = bundle
            return fragment
        }
    }

    override fun getViewBinding() = FragmentLiveAnalyzeCompareBinding.inflate(layoutInflater)

    override fun initView() {
        binding.rvBigRateHome.layoutManager = LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false)
        homeBigRateAdapter= LiveAnalyzeBigRateAdapter()
        binding.rvBigRateHome.adapter = homeBigRateAdapter
        homeBigRateAdapter.submitList(arrayListOf("1","2","3","4","5","6","7","8","9","10"))
        binding.rvBigRateAway.layoutManager = LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false)
        awayBigRateAdapter= LiveAnalyzeBigRateAdapter()
        binding.rvBigRateAway.adapter = awayBigRateAdapter
        awayBigRateAdapter.submitList(arrayListOf("1","2","3","4","5","6","7","8","9","10"))
    }

    override fun initData() {

    }
}

